export function syncPosition(lastPosition, currentPosition) {
  lastPosition.x = currentPosition.x
  lastPosition.y = currentPosition.y
}

export function isMoved(lastPosition, currentPosition) {
  // console.log(currentPosition)
  return currentPosition.x !== lastPosition.x || currentPosition.y !== lastPosition.y
}
